package com.ruoyi.project.his.serivce.impl;

import com.ruoyi.project.his.domain.DoctorProjectFee;
import com.ruoyi.project.his.mapper.DoctorProjectFeeMapper;
import com.ruoyi.project.his.serivce.IDoctorProjectFeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DoctorProjectFeeServiceImpl implements IDoctorProjectFeeService {
    @Autowired
    private DoctorProjectFeeMapper projectFeeMapper;

    /**
     * 分页查询检查费用
     * @param projectFee
     * @return
     */
    @Override
    public List<DoctorProjectFee> selectProjectFeeByParams(DoctorProjectFee projectFee) {
        return projectFeeMapper.selectProjectFeeByParams(projectFee);
    }

    /**
     * 新增检查费用
     * @param projectFee
     * @return
     */
    @Override
    public int insertProjectFee(DoctorProjectFee projectFee) {
        return projectFeeMapper.insertProjectFee(projectFee);
    }

    /**
     * 更新检查费用
     * @param projectFee
     * @return
     */
    @Override
    public int updateProjectFee(DoctorProjectFee projectFee) {
        return projectFeeMapper.updateByProjectId(projectFee);
    }

    /**
     * 根据主键查询检查费用
     * @param projectId
     * @return
     */
    @Override
    public DoctorProjectFee selectByProjectId(Integer projectId) {
        return projectFeeMapper.selectByProjectId(projectId);
    }

    /**
     * 批量删除检查费用
     * @param projectIds
     * @return
     */
    @Override
    public int batchDeleteByProjectIds(Integer[] projectIds) {
        return projectFeeMapper.batchDeleteByProjectIds(projectIds);
    }
}
